This page last changed on Oct 13, 2009 by michael.

Administration Views

Apache Wink provides administration views in order to help developers better understand the services that the REST application expose. There are two administration views, the "application resource XML view" and the "resource registry XML view".

Application Resources XML View

The application resource XML view shows the way the application is exposed to the user, it exposes the REST resources with their URI templates, the HTTP methods that are supported by the resources and the consume/produces MimeType supported by each method. This view can be used as a base for the service documentation.

Resource Registry XML View

The resource registry XML view shows the way that the application is developed, it is similar to the "Application resources XML view" but it also exposes the classes that implement resources and their priority in the registry. This view can be useful for debugging.

Configuration

By default these views are disabled, in order to activate them register the "AdminServlet" implemented by the org.apache.wink.server.internal.servlet.AdminServletin the web.xml file. No init parameters are required.

Example

The following code snippet is an example of a web application descriptor file.

<servlet>
	<servlet-name>restSdkAdmin</servlet-name>
	<servlet-class>org.apache.wink.server.internal.servlet.AdminServlet</servlet-class>
</servlet>

<servlet-mapping>
	<servlet-name>restSdkAdmin</servlet-name>
	<url-pattern>/admin</url-pattern>
</servlet-mapping>
Document generated by Confluence on Nov 11, 2009 06:57